#include "button.h"

Button::Button(std::string text,int x,int y,int width,int height)
        :m_x(x),m_y(y),m_width(width),m_height(height),m_text(text)
{

}

int Button::x()
{
    return this->m_x;
}

int Button::y()
{
    return this->m_y;
}

int Button::width()
{
    return this->m_width;
}

int Button::height()
{
    return this->m_height;
}

char *Button::text()
{
    return const_cast<char*>(this->m_text.data()) ;
}
